﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SharedGenomics.Core
{
    public class PropertyValidationError
    {
        public PropertyValidationError(string propertyName, string errorMessage)
        {
            propertyName.ThrowIfNull("propertyName");

            this.PropertyName = propertyName;
            this.ErrorMessage = errorMessage ?? string.Empty;
        }

        public string PropertyName { get; private set; }
        public string ErrorMessage { get; private set; }
    }
}
